<!--
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<div class="ddp-wrap-popup2 ddp-types ddp-type-rulepop" style="display:block;" *ngIf="isShow" [ngStyle]="{'top':contextInfo.top, 'left':contextInfo.left}">
  <ul class="ddp-list-popup" (clickOutside)="isShow = false">
    <li *ngFor="let command of commandList" [ngClass]="{'ddp-disabled': command.disabled}">
      <a href="javascript:" (click)="_selectCommand(command)">
        <em class="{{command.iconClass}}"></em>
        {{command.label}}
        <em class="ddp-icon-view" *ngIf="command.children"></em>
      </a>
      <div class="ddp-wrap-popup2" *ngIf="command.children && 0 < command.children.length">
        <ul class="ddp-list-popup ddp-padd">
          <li *ngFor="let depth2 of command.children" [ngClass]="{'ddp-disabled': depth2.disabled}">
            <a href="javascript:" (click)="_selectCommand(depth2)">
              {{depth2.label}}
              <em class="ddp-icon-view" *ngIf="depth2.children"></em>
            </a>
            <div class="ddp-wrap-popup2" *ngIf="depth2.children && 0 < depth2.children.length">
              <ul class="ddp-list-popup ddp-padd">
                <li *ngFor="let depth3 of depth2.children" [ngClass]="{'ddp-disabled': depth3.disabled}">
                  <a href="javascript:" (click)="_selectCommand(depth3)" title="{{depth3.label}}">
                    {{depth3.label}}
                  </a>
                </li>
              </ul>
            </div>
          </li>
        </ul>
      </div>
    </li>
  </ul>
</div>
